package com.csii.adhoc.dataunits.addcolumn;

import java.util.Objects;

/**
 * 该类专用于新增列时前端向后端添加列的值域分组
 */
public class ColValueOrder {
    private String orderId;
    private String modelId;
    private String type;
    private String name;
    private String colName;
    private String showName;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ColValueOrder)) return false;
        ColValueOrder that = (ColValueOrder) o;
        return Objects.equals(getOrderId(), that.getOrderId()) && Objects.equals(getModelId(), that.getModelId()) && Objects.equals(getType(), that.getType()) && Objects.equals(getColName(), that.getColName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getOrderId(), getModelId(), getType(), getColName());
    }
}
